package common

import (
	"card/app/framework/poker"
	"card/app/models"
)

type IPlayer interface {
	//由game回调的方法
	GetPlayerUser() *models.Member
	PlayCardSuccess(cardIndexs []int) //出牌成功
	PlayCardError(err string)         //出牌错误
	GetReadyStatus() bool
	GetAutoStatus() bool
	GetIndex() int
	SetIndex(index int)
	SetPokerCards(cards poker.Poker)
	StartCallScore()
	StartPlay()
	IsOutOfCards() bool //是否出完牌
	SetManager()
	JoinGame(gameType int, gameId int)
	LeaveGame()
	SetReadyStatus()
}
